package com.echat.business.home.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author chentl123
 * @since 2019-05-28
 */
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
@TableName("sys_user_third")
public class SysThirdUser extends Model<SysThirdUser> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用戶id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 第三方账号id
     */
    private Integer thirdId;
    /**
     * 登录用户名
     */
    private  String login;
    /**
     * 网名
     */
    private String name;
    /**
     * 个性标签
     */
    private String bio;
    /**
     * 头像地址
     */
    private String avatar;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getThirdId() {
        return thirdId;
    }

    public void setThirdId(Integer thirdId) {
        this.thirdId = thirdId;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "SysThirdUser{" +
                "id=" + id +
                ", thirdId=" + thirdId +
                ", login='" + login + '\'' +
                ", name='" + name + '\'' +
                ", bio='" + bio + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
